package com.fastloan.mgt.invest.model.count;

/**
 * Created by gelon on 2017/10/16.
 * 同居问题详情类
 */
public class AnswerDetail {

    String cname;
    String subjectId;
    String value;
    String typeIds;
    int type;
    String name;
    String phone;
    String formId;
    String answerOptions;
    int haveOther;
    String cusTempId;
    String title;


    public String getCname() {
        return cname;
    }

    public AnswerDetail setCname(String cname) {
        this.cname = cname;
        return this;
    }


    public String getValue() {
        return value;
    }

    public AnswerDetail setValue(String value) {
        if (value.contains("#")) {
            try {
                value = value.substring(value.indexOf("#,") + 2, value.length());
            } catch (IndexOutOfBoundsException ignored) {
            }
        }
        this.value = value;
        return this;
    }


    public String getTypeIds() {
        return typeIds;
    }

    public AnswerDetail setTypeIds(String typeIds) {
        this.typeIds = typeIds;
        return this;
    }

    public int getType() {
        return type;
    }

    public AnswerDetail setType(int type) {
        this.type = type;
        return this;
    }

    public String getName() {
        return name;
    }

    public AnswerDetail setName(String name) {
        this.name = name;
        return this;
    }

    public String getPhone() {
        return phone;
    }

    public AnswerDetail setPhone(String phone) {
        this.phone = phone;
        return this;
    }


    public String getAnswerOptions() {
        return answerOptions;
    }

    public AnswerDetail setAnswerOptions(String answerOptions) {
        this.answerOptions = answerOptions;
        return this;
    }

    public int getHaveOther() {
        return haveOther;
    }

    public AnswerDetail setHaveOther(int haveOther) {
        this.haveOther = haveOther;
        return this;
    }


    public String getSubjectId() {
        return subjectId;
    }

    public AnswerDetail setSubjectId(String subjectId) {
        this.subjectId = subjectId;
        return this;
    }

    public String getFormId() {
        return formId;
    }

    public AnswerDetail setFormId(String formId) {
        this.formId = formId;
        return this;
    }

    public String getCusTempId() {
        return cusTempId;
    }

    public AnswerDetail setCusTempId(String cusTempId) {
        this.cusTempId = cusTempId;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public AnswerDetail setTitle(String title) {
        this.title = title;
        return this;
    }
}
